package bidirectionallist;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-10
 * Time:19:41
 */
public class TextList {
    public static void main(String[] args) {
        List fw=new List();
        fw.addhead(4);
        fw.addhead(5);fw.addhead(6);
        fw.addtail(10); fw.addtail(11); fw.addtail(12); fw.addtail(13);
        List.Mylist kk=fw.head;
        while(kk.data!=11)
        {
            kk=kk.next;
        }
        fw.show();
        System.out.println();
        fw.delet(-1);
        System.out.println(fw.head.data);
        fw.show();
       /*     System.out.println("\n"+kk.prv.data);
        List.Mylist kk1=fw.reciprocalNode(2);
        System.out.println(kk1.data);*/
    }
}
